﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yunzuan.Foundation.Attributes;
using Yunzuan.Foundation.Entities;

namespace CloudDiamonds.Models.DBModels
{
    [Table(TableName = "yz_Cart_Parcel", PrimaryKey = "CartID")]
    public class ParcelCartInfo : BaseEntity
    {
        #region Private Properties
        private int _cartID;
        private int? _customerID;
        private long? _parcelID;
        private decimal? _priceUSD;
        private DateTime? _createTime;
        private int? _cartType;
        private int? _userID;
        //private string _sn;
        private string _remarks;
        #endregion

        #region Public Properties
        /// <summary>
        /// CartID.
        /// </summary>
        [Column(IsAutoIncrement = true)]
        public int CartID
        {
            get
            {
                return _cartID;
            }
            set
            {
                this.ChangeNotify<int>("CartID", value, ref _cartID);
            }
        }

        /// <summary>
        /// CustomerID. 客户ID
        /// </summary>
        public int? CustomerID
        {
            get
            {
                return _customerID;
            }
            set
            {
                this.ChangeNotify<int?>("CustomerID", value, ref _customerID);
            }
        }
        /// <summary>
        /// UserID. 销售、业务ID
        /// </summary>
        public int? UserID
        {
            get
            {
                return _userID;
            }
            set
            {
                this.ChangeNotify<int?>("UserID", value, ref _userID);
            }
        }
        /// <summary>
        /// CartType. 1 电脑端 2苹果端 3安卓端
        /// </summary>
        public int? CartType
        {
            get
            {
                return _cartType;
            }
            set
            {
                this.ChangeNotify<int?>("CartType", value, ref _cartType);
            }
        }
        /// <summary>
        /// InventoryID.
        /// </summary>
        public long? ParcelID
        {
            get
            {
                return _parcelID;
            }
            set
            {
                this.ChangeNotify<long?>("ParcelID", value, ref _parcelID);
            }
        }
        /// <summary>
        /// PriceUSD.
        /// </summary>
        public decimal? PriceUSD
        {
            get
            {
                return _priceUSD;
            }
            set
            {
                this.ChangeNotify<decimal?>("PriceUSD", value, ref _priceUSD);
            }
        }

        /// <summary>
        /// CreateTime.
        /// </summary>
        public DateTime? CreateTime
        {
            get
            {
                return _createTime;
            }
            set
            {
                this.ChangeNotify<DateTime?>("CreateTime", value, ref _createTime);
            }
        }
        /// <summary>
        /// 货号
        /// </summary>
        //public string SN
        //{
        //    get { return _sn; }
        //    set { this.ChangeNotify<string>("SN", value, ref _sn); }
        //}


        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks
        {
            get { return _remarks; }
            set { this.ChangeNotify<string>("Remarks", value, ref _remarks); }
        }


        /// <summary>
        /// AttachIDs.
        /// </summary>
        public int[] AttachIDs { get; set; }
        #endregion
    }
}
